package com.hellowx.manager.controller;

import com.hellowx.manager.pojo.Brand;
import com.hellowx.manager.service.BrandService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @author MagicMushroom
 * @date 2021/7/17
 */
@RestController
@RequestMapping("/brand")
public class BrandController {

    @Resource
    private BrandService brandService;

    /**
     *  获取所有的品牌
     * @return 品牌list
     */
    @RequestMapping("/list")
    public List<Brand> list(){
        return brandService.selectAllBrand();
    }
}
